<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
    <!-- 上述3个meta标签*必须*放在最前面，任何其他内容都*必须*跟随其后！ -->
    <title>红满堂失物招领</title>
    <!-- Bootstrap -->
    <link rel="stylesheet" type="text/css" href="__STATIC__/bootstrap/css/bootstrap.min.css">
    <!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
    <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
    <!--[if lt IE 9]>
      <script src="//cdn.bootcss.com/html5shiv/3.7.2/html5shiv.min.js"></script>
      <script src="//cdn.bootcss.com/respond.js/1.4.2/respond.min.js"></script>
    <![endif]-->
      <style type="text/css">
          body{
              background-repeat:no-repeat;
              background-attachment:fixed;
              background-size:100% 100% ;
              background-position:50% 50%;
          }
          p{
              font-family: "Montserrat", "Helvetica Neue", Helvetica, Arial, sans-serif;
              font-style: italic;
              color: #dff0d8;
          }
        .btn_main{
        }
         .foot{
    
             margin-top: 20px;
             text-align: center;
         }
          .btn {
              height: 40px;
              width: 160px;
          }
      </style>


  </head>
  <body >
  <!--div class="con_img" id="div1">
  <img src="__PUBLIC__/Img/bg-main.jpg" id="bg_pic" >
  <div id="div2"><button class="btn btn-info" style="width:120px" >进入首页</button></div>
  </div-->
  <input type="hidden" value="{$username}" id="username">
  <input type="hidden" value="{$uid}" id="uid">
  <ul class="nav nav-tabs">
      <li role="presentation" class="active"><a href="#">失物招领</a></li>
      <li role="presentation"><a href="{:U('Home/Post/post')}" id="post">发布信息</a></li>
      <li role="presentation"><a href="{:U('Home/OAuth/Login')}" id="login">登录</a></li>
  </ul>
        <div class="btn_main" id="btn_enter">
      <button class="btn btn-primary" style="width: 100px" onclick="jump_head()">进入首页</button>
      </div>
  <div class="foot">
      <p>红满堂工作室版权所有 盗版必究</p>
      <p>联系工作室:995746872@qq.com(bug反馈)</p>
  </div>
  <script>
        var url = "__APP__";
      document.body.style.backgroundImage="url(__PUBLIC__/Img/bg-main.jpg)";
    document.getElementById('btn_enter').style.paddingLeft=(document.documentElement.clientWidth/2-50)+'px';
     document.getElementById('btn_enter').style.paddingTop=(document.documentElement.clientHeight/4*3)+'px';
     document.body.style.height=document.documentElement.clientHeight+'px';
     var uid=document.getElementById("uid").value;
     var username=document.getElementById("username").value;
     if(uid==0)
         document.getElementById('post').onclick=function()
{
    alert('您还没有登录,请先登录');
    return false;
}
     else {
             document.getElementById("login").innerHTML = document.getElementById("username").value;
         document.getElementById('login').href = url + "/Home/User/index";

     }
function jump_head()//点击进入首页的按钮跳转到首页
{
    window.location.href="__APP__/Home/ThingLost/all";
}
  </script>  <!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
  <script src="__STATIC__/jquery/jquery.min.js"></script>
  <!-- Include all compiled plugins (below), or include individual files as needed -->
  <script src="__STATIC__/bootstrap/js/bootstrap.min.js"></script>
  </body>
</html>
